-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Big Picture APIs. #63
base: master
Are you sure you want to change the base?
Conversation
@patrickklug |
Just for more info. If anyone who wants to build greenworks for nw.js v0.8.6, he will encounter a The current workaround is to modify a file in nan. Below shows the way in nan v2.1.0:
|
Have these APIs been merged into the main Greenworks build yet? |
@HughIsaacs2 not yet, since I don't have device to test them... |
I don't think you need a gamepad to use the on screen keyboard in Big Picture mode, and even if so I can definitely say it works with any XInput gamepad (I've used it with my Xbox One controller). So gamepad or not there should be a way to emulate one (there's a ton of Phone to XInput or even keyboard to XInput apps out there). |
hi there, just checking to see the status of this PR. is there anything blocking this from getting merged, any issues that need sorting out first? |
@cvan, this PR is kind of outdated, I need to rebase it. Originally this feature was requested by @patrickklug, but he switched to other stuff and didn't get time to play it around. Do you need this feature? I may pick it up. |
I think anything to improve this library is important, as more and more games coming down the pipe that will want to use it! |
Hi @hokein Can I used gamepad now? |
Fixes #60
After discussing with @patrickklug, currently we have no plan to support steam controller APIs since these APIs are too specific.
This PR exposes the Steam Big Picture APIs:
greenworks.on("gamepad-text-input-dismissed", function(submitted, unsubmittedText) {})
Boolean
: true if user entered & accepted text (callgreenworks.getEnteredGamepadTextInput()
for text), false if canceled input.Integer
Emits when Steam Big Picture gamepad text input has been closed.
greenworks.showGamepadTextInput(inputMode, inputLineMode, description, charMax, existingText)
greenworks.GamepadTextInputMode
greenworks.GamepadTextInputLineMode
String
Integer
String
Activates the Big Picture text input dialog which only supports gamepad input
greenworks.getEnteredGamepadTextLength()
Returns previously entered text's length
greenworks.getEnteredGamepadTextInput(cchText)
Integer
Returns previously entered text
Enum values: